package com.zt.ftphelper.util;

import javafx.scene.control.Alert;

/**
 * @author zt
 */
public class SimpleAlert {

    public SimpleAlert() {
    }

    public SimpleAlert(String contentText) {
        this(contentText, Alert.AlertType.WARNING);
    }

    public SimpleAlert(String contentText, Alert.AlertType alertType) {
        Alert alert = new Alert(alertType);
        alert.setTitle("");
        alert.setHeaderText(null);
        alert.setContentText(contentText);
        alert.showAndWait();
    }

}
